package sctu.edu.java.year2016.team01.zhuming.day20160614.chapter11_3;

import java.util.Scanner;

/**
 * Created by Administrator on 2016/6/15.
 */
    public class MainComputer {
    public static void main(String[] args)  {

    Scanner scan=new Scanner(System.in);
    System.out.println("请输入一个数,如果是负数则显示程序异常：");
       int  num = scan.nextInt();

    System.out.println("请再输入一个数，如果是负数则显示程序异常：");

       int  num1 = scan.nextInt();

     Computer computer=new Computer();


        try {
            System.out.println("       " + computer.GreatestCommonDivisor(num, num1));
        } catch (MyOwnException e) {
            e.printStackTrace();
        }

    }
}
